package com.tuanzi.loan.web.lazy.galaxycard;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.galaxycard.GalaxyCardPromoteChannelUserRightService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardPromoteChannelUserRightRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardPromoteChannelUserRightResponse;

public class GalaxyCardPromoteChannelUserRightLazyDataModel extends BaseLazyDataModel<GalaxyCardPromoteChannelUserRightRequest, GalaxyCardPromoteChannelUserRightResponse> {

	private static final long serialVersionUID = -3805442029194662807L;
	
	private GalaxyCardPromoteChannelUserRightService galaxyCardPromoteChannelUserRightService = SpringContextHolder.getBean(GalaxyCardPromoteChannelUserRightService.class);
	
	public GalaxyCardPromoteChannelUserRightLazyDataModel(GalaxyCardPromoteChannelUserRightRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<GalaxyCardPromoteChannelUserRightResponse> doLoad(
			PageSearcher<GalaxyCardPromoteChannelUserRightRequest> pageSearcher) {
		return galaxyCardPromoteChannelUserRightService.list(pageSearcher);
	}

}
